\version "2.24.4"
\language "english"

\header {
  title = "BrisePied 203"
  copyright = "https://www.cercle-occitan-47.com/partitions/2-scottish/2-03-s-brise-pied/"
}

\paper {
  % Add space for instrument names
  indent = 18\mm
}

\layout {
  \context {
    \Voice
    \consists "Melody_engraver"
    \override Stem.neutral-direction = #'()
  }
}

global = {
  \key g \major
  \numericTimeSignature
  \time 2/4
}

chordNames = \chordmode {
  \global
  % Ajouter ici des chiffrages.
  \repeat volta 2 { 
  g2 d4 g g2 d4 g   }
  \break
  \repeat volta 2 { 
  g4 d d g c d }
  \alternative {{d4:7 g}{d4 g}}
  
}

flute = \relative c' {
  \global
  % En avant la musique.
  \repeat volta 2 { 
  d8 e d e d g16 a b8 g d e d e d b'16 a g4}
  \repeat volta 2 { 
  b16 a b c b8 a a16 g a b a8 g 
  d'16 e d c b a b c}
  \alternative {{b8 a b g}{ b8 a g4}}
}

chordsPart = \new ChordNames \chordNames

flutePart = \new Staff \with {
  instrumentName = "Ut"
} \flute

\score {
  <<
    \chordsPart
    \flutePart
  >>
  \layout { }
}
\score {\unfoldRepeats
  <<
    \chordsPart
    \flutePart
  >>
  \midi {\tempo 4 = 100 }
}